package com.jt.entity;

public class Page {
    private Integer currentPage;
    private Integer count;
    private Integer countPage;
    private String url;
    private Integer size=3;

    public Integer  getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;

        countPage = count%size==0?count/size:count/size+1;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getCountPage() {
        return countPage;
    }

    public void setCountPage(Integer countPage) {
        this.countPage = countPage;

    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "Page{" +
                "currentPage=" + currentPage +
                ", count=" + count +
                ", countPage=" + countPage +
                ", url='" + url + '\'' +
                ", size=" + size +
                '}';
    }
}
